
import { RouterModule, Routes } from '@angular/router';
import { ModuleWithProviders } from '@angular/core';
import {ErrorpageComponent} from "./component/errorpage/errorpage.component";
export const routes = [
  { path: '', redirectTo: '/page/dashboard', pathMatch: 'full' },
  { path: '**',  redirectTo: 'error' },
  { path: 'error',  component: ErrorpageComponent }
];

export const routing: ModuleWithProviders = RouterModule.forRoot(routes,{useHash:true});
